package com.greenleaf.entity;
/**
 * 会员表
 * */
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import com.fasterxml.jackson.annotation.JsonFormat;
@Component
public class Vip {
private Integer vId;//编号
private String vName;//用户名
private String vPassword;//密码
private String vPhone;//手机号
private String email;//邮箱
private String vImg;//头像
@JsonFormat(pattern = "yyyy-MM-dd ",timezone="GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
private Date brithday;//生日
private String sex;//性别
@JsonFormat(pattern = "yyyy-MM-dd HH:mm: ss",timezone="GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
private Date sTime;//注册时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm: ss",timezone="GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
private Date uTime;
public Integer getvId() {
	return vId;
}
public void setvId(Integer vId) {
	this.vId = vId;
}
public String getvName() {
	return vName;
}
public void setvName(String vName) {
	this.vName = vName;
}
public String getvPassword() {
	return vPassword;
}
public void setvPassword(String vPassword) {
	this.vPassword = vPassword;
}
public String getvPhone() {
	return vPhone;
}
public void setvPhone(String vPhone) {
	this.vPhone = vPhone;
}
public String getEmail() {
	return email;
}
public void setEmail(String email) {
	this.email = email;
}
public String getvImg() {
	return vImg;
}
public void setvImg(String vImg) {
	this.vImg = vImg;
}
public Date getBrithday() {
	return brithday;
}
public void setBrithday(Date brithday) {
	this.brithday = brithday;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public Date getsTime() {
	return sTime;
}
public void setsTime(Date sTime) {
	this.sTime = sTime;
}
public Date getuTime() {
	return uTime;
}
public void setuTime(Date uTime) {
	this.uTime = uTime;
}
public Vip(Integer vId, String vName, String vPassword, String vPhone, String email, String vImg, Date brithday,
		String sex, Date sTime, Date uTime) {
	super();
	this.vId = vId;
	this.vName = vName;
	this.vPassword = vPassword;
	this.vPhone = vPhone;
	this.email = email;
	this.vImg = vImg;
	this.brithday = brithday;
	this.sex = sex;
	this.sTime = sTime;
	this.uTime = uTime;
}
public Vip() {
	super();
}
@Override
public String toString() {
	return "Vip [vId=" + vId + ", vName=" + vName + ", vPassword=" + vPassword + ", vPhone=" + vPhone + ", email="
			+ email + ", vImg=" + vImg + ", brithday=" + brithday + ", sex=" + sex + ", sTime=" + sTime + ", uTime="
			+ uTime + "]";
}

}
